/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bugsandcritters;
import javax.swing.*;
import java.awt.event.*;
/**
 *
 * @author Robert Gibbons
 */
public class GameWindow extends JFrame implements MouseListener
{
    public static final int Width= 1280;
    public static final int  Height =900;
    public static GameBox MyBox;
    public static GameWindow self;
    public static Boolean MousePressed = false;
    
    @Override
    public void mouseClicked(MouseEvent e)
    {
        
    }
    
    @Override
    public void mousePressed(MouseEvent e)
    {
        MousePressed = true;
    }
    
    @Override
    public void mouseReleased(MouseEvent e)
    {
        MousePressed = false;
    }
    
    @Override
    public void mouseEntered(MouseEvent e)
    {
        
    }
    
    @Override
    public void mouseExited(MouseEvent e)
    {
        MousePressed = false;
    }
    
    public GameWindow()
    {
        this.addMouseListener(this);
        self=this;
        this.setSize(Width, Height);
        this.setTitle("Bugs and Critters");
        MyBox = new GameBox();
        MyBox.setSize(Width, Height);
        add(MyBox);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
    }
    
}
